package F.Demo;



/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class Man1 {

    private String eyescolor;

    public String getEyescolor() {
        return eyescolor;
    }

    public void setEyescolor(String eyescolor) {
        this.eyescolor = eyescolor;
    }
    
}

class AsiaMan extends Man1{
    
}


class  EuroMan extends Man1{
    public static void main(String[]args){
       EuroMan euro=new EuroMan();
       euro.setEyescolor("蓝色");
       System.out.println("欧洲人的眼睛颜色是"+euro.getEyescolor());
    }
}

class AfricaMan extends Man1{
    public static void main(String[]args){
        AfricaMan euro=new AfricaMan();
        euro.setEyescolor("黑色");
        System.out.println("非洲人皮肤是"+euro.getEyescolor());
    }
}

class ChineseMan extends Man1{
    public static void main(String[]args){
        ChineseMan euro=new ChineseMan();
        euro.setEyescolor("黑色");
        System.out.println("中国人头发是"+euro.getEyescolor());
    }
}